using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Transaction;

namespace Thaire.Investment.Repository.Mapping
{

    class UnitTrustPrivilegeMap : ClassMap<UnitTrustPrivilege>
    {

        public UnitTrustPrivilegeMap()
        {
            Table("UNIT_TRUST_PRIVILEGE");
            Id(x => x.ID, "UNIT_TRUST_PRIVILEGE_ID").GeneratedBy.Identity();

            Map(x => x.UnitTrustHeaderID, "UNIT_TRUST_HEADER_ID");
            Map(x => x.AcknowlegeDate, "ACKNOWLEGE_DATE");
            Map(x => x.PrivilegeTypeName, "PRIVILEGE_TYPE_NAME");
            Map(x => x.PrivilegeTypeID, "PRIVILEGE_TYPE_ID");
            Map(x => x.EXDate, "EX_DATE");
            Map(x => x.BcdDate, "BCD_DATE");
            Map(x => x.DivUnit, "DIV_UNIT");
            Map(x => x.DivAmount, "DIV_AMOUNT");
            Map(x => x.DivStock, "DIV_STOCK");
            Map(x => x.FractionUnit, "FRACTION_UNIT");
            Map(x => x.FractionDivUnit, "FRACTION_DIV_UNIT");
            Map(x => x.AmortizeUnit, "AMORTIZE_UNIT");
            Map(x => x.PriceUnit, "PRICE_UNIT");
            Map(x => x.RightOldNew, "RIGHT_OLD_NEW");
            Map(x => x.PaymentDate, "PAYMENT_DATE");
            Map(x => x.TrannsaferDate, "TRANNSAFER_DATE");
            Map(x => x.TrannsaferPrice, "TRANNSAFER_PRICE");
            Map(x => x.CreateDate, "CREATE_DATE");
            Map(x => x.CreateBY, "CREATE_BY");
            Map(x => x.ModifyDate, "MODIFY_DATE");
            Map(x => x.ModifyBY, "MODIFY_BY");

        }


    }

}